package com.easyweb.session;

import com.easyweb.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("semtlerList")
public class SemtlerList extends EntityQuery<Semtler> {

	private static final String EJBQL = "select semtler from Semtler semtler";

	private static final String[] RESTRICTIONS = { "lower(semtler.semtAdi) like lower(concat(#{semtlerList.semtler.semtAdi},'%'))", };

	private Semtler semtler = new Semtler();

	public SemtlerList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Semtler getSemtler() {
		return semtler;
	}
}
